Add product management views

This commit is contained in:
Skia
2016-07-27 17:23:02 +02:00
parent 4408890ab2
commit f230fbc135
12 changed files with 98 additions and 10 deletions

View File

@ -75,6 +75,9 @@ class Product(models.Model):
def __str__(self):
return self.name
def get_absolute_url(self):
return reverse('counter:product_list')
class Counter(models.Model):
name = models.CharField(_('name'), max_length=30)
club = models.ForeignKey(Club, related_name="counters")