Ticket #25505: models.py

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