Skip to content

Commit

Permalink
Remove outdated test and commented out Locality unique together
Browse files Browse the repository at this point in the history
  • Loading branch information
banagale committed Aug 29, 2020
1 parent a6fca0f commit 0c83884
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion address/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ class Address(models.Model):
class Meta:
verbose_name_plural = 'Addresses'
ordering = ('locality', 'route', 'street_number')
# unique_together = ('locality', 'route', 'street_number')

def __str__(self):
if self.formatted != '':
Expand Down
4 changes: 0 additions & 4 deletions address/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ def test_ordering(self):
self.assertEqual(qs[3].name, 'Northcote')
self.assertEqual(qs[4].name, 'Melbourne')

def test_unique_name_state(self):
Locality.objects.create(name='Melbourne', state=self.au_qld)
self.assertRaises(IntegrityError, Locality.objects.create, name='Melbourne', state=self.au_vic)

def test_unicode(self):
self.assertEqual(unicode(self.au_vic_mel), u'Melbourne, Victoria 3000, Australia')
self.assertEqual(unicode(self.au_vic_ftz), u'Fitzroy, Victoria, Australia')
Expand Down

0 comments on commit 0c83884

Please sign in to comment.