Ticket #25505: models.py
File models.py, 386 bytes (added by , 9 years ago) |
---|
Line | |
---|---|
1 | from django.db import models |
2 | |
3 | class Place(models.Model): |
4 | name = models.CharField(max_length=255) |
5 | telephone = models.CharField(max_length=255) |
6 | email = models.EmailField() |
7 | |
8 | class ProxyPlace(Place): |
9 | |
10 | class Meta: |
11 | proxy = True |
12 | |
13 | class ChipShop(ProxyPlace): |
14 | chips_price = models.IntegerField() |
15 | |
16 | class IndianRestaurant(Place): |
17 | curry_price = models.IntegerField() |