diff --git a/lostplaces/lostplaces_app/models.py b/lostplaces/lostplaces_app/models.py index a6d16fa..75c33f9 100644 --- a/lostplaces/lostplaces_app/models.py +++ b/lostplaces/lostplaces_app/models.py @@ -29,7 +29,7 @@ class Voucher(models.Model): Creation date is being set automatically during voucher creation. """ - code = models.CharField(unique=True, max_length=10) + code = models.CharField(unique=True, max_length=30) created = models.DateTimeField(auto_now_add=True) expires = models.DateField() @@ -60,8 +60,8 @@ class Place (models.Model): def average_latlon(place_list): amount = len(place_list) # Init fill values to prevent None - longitude = 0 - latitude = 0 + longitude = 1 + latitude = 1 for place in place_list: longitude += place.longitude