|
|
|
|
@ -59,11 +59,12 @@ post_save.connect(post_save_handler, sender=Service) |
|
|
|
|
class AbstractOrder(models.Model): |
|
|
|
|
person = models.ForeignKey('accounts.User') |
|
|
|
|
phone = models.BigIntegerField() |
|
|
|
|
city = models.CharField(max_length=255) |
|
|
|
|
country = models.CharField(max_length=255) |
|
|
|
|
city = models.CharField(max_length=255, blank=True, default='') |
|
|
|
|
country = models.CharField(max_length=255, blank=True, default='') |
|
|
|
|
person_inf = models.CharField(max_length=255) |
|
|
|
|
price = models.IntegerField(blank=True, null=True) |
|
|
|
|
currency = EnumField(values=CURENCIES, blank=True) |
|
|
|
|
event = models.CharField(max_length=255, blank=True, null=True) |
|
|
|
|
exposition = models.ForeignKey('exposition.Exposition', null=True) |
|
|
|
|
conference = models.ForeignKey('conference.Conference', null=True) |
|
|
|
|
seminar = models.ForeignKey('seminar.Seminar', null=True) |
|
|
|
|
@ -130,8 +131,13 @@ class Visit(AbstractOrder): |
|
|
|
|
excursion = models.BooleanField() |
|
|
|
|
notes = models.TextField(blank=True) |
|
|
|
|
|
|
|
|
|
ADVERTYSE_TYPES = ((u'Рекламировать участника', u'Рекламировать участника'), |
|
|
|
|
(u'Баннерная реклама', u'Баннерная реклама'), |
|
|
|
|
(u'Приоритетное размещение событий в каталоге',u'Приоритетное размещение событий в каталоге'), |
|
|
|
|
(u'Персональная визитка Вашей компании',u'Персональная визитка Вашей компании')) |
|
|
|
|
class Advertising(AbstractOrder): |
|
|
|
|
pass |
|
|
|
|
type = models.CharField(choices=ADVERTYSE_TYPES, max_length=255, blank=True, null=True) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CallBack(models.Model): |
|
|
|
|
phone = models.CharField(max_length=30) |
|
|
|
|
|