Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
0d448511
Commit
0d448511
authored
Nov 08, 2015
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commented out saving testing
parent
797de8c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
roomlist/accounts/models.py
roomlist/accounts/models.py
+6
-6
No files found.
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