Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
0d448511
Commit
0d448511
authored
Nov 08, 2015
by
Daniel W Bond
Browse files
commented out saving testing
parent
797de8c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/models.py
View file @
0d448511
...
...
@@ -215,12 +215,12 @@ class Student(TimeStampedModel):
def
__unicode__
(
self
):
return
unicode
(
self
.
user
.
username
)
def
save
(
self
,
*
args
,
**
kwargs
):
print
(
'we be savin
\'
!'
)
from
django.db.models.signals
import
pre_save
,
post_save
for
signal
in
[
pre_save
,
post_save
]:
print
(
signal
,
signal
.
receivers
)
super
(
Student
,
self
).
save
(
*
args
,
**
kwargs
)
#
def save(self, *args, **kwargs):
#
print('we be savin\'!')
#
from django.db.models.signals import pre_save, post_save
#
for signal in [pre_save, post_save]:
#
print(signal, signal.receivers)
#
super(Student, self).save(*args, **kwargs)
class
Confirmation
(
TimeStampedModel
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment