1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00
Files
django/tests/modeltests/signals/models.py
2010-10-10 18:28:53 +00:00

14 lines
303 B
Python

"""
Testing signals before/after saving and deleting.
"""
from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=20)
last_name = models.CharField(max_length=20)
def __unicode__(self):
return u"%s %s" % (self.first_name, self.last_name)