Skip to content

Commit

Permalink
fixing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sara committed Jul 17, 2018
1 parent 296347f commit 55b5e74
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions garfield/lookup/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
from contacts.models import Contact

# Create your models here.
class Lookup(model.Model):
class Lookup(models.Model):
look_up_date = models.DateTimeField(auto_now_add=True)
officer_phone_number = models.CharField(max_length=12,
db_index=True
blank=False
db_index=True,
blank=False,
null=False)
contact_phone_number = models.CharField(max_length=15,
db_index=True,
blank=False,
null=False)

related_contact = models.ManyToOneField(Contact, null=True)
related_contact = models.ForeignKey(Contact, null=True, on_delete=models.SET_NULL)

def save(self,force_insert=False,force_update=False,**kwargs):
super(Lookup,self).save(force_insert,force_update)
Expand Down

0 comments on commit 55b5e74

Please sign in to comment.