|
|
|
|
@ -159,7 +159,7 @@ def conference_change(request, url): |
|
|
|
|
#initial StatisticFormSet |
|
|
|
|
StatisticFormSet = modelformset_factory(Statistic, form=StatisticForm, exclude=('conference',)) |
|
|
|
|
#fill form with data from database |
|
|
|
|
data = {'web_page':conference.web_page, 'foundation_year': conference.foundation_year, |
|
|
|
|
data = {'web_page':conference.web_page, 'place_alt': conference.place_alt, 'foundation_year': conference.foundation_year, |
|
|
|
|
'data_begin':conference.data_begin, 'data_end':conference.data_end, 'currency':conference.currency, |
|
|
|
|
'tax':conference.tax, 'min_price':conference.min_price, 'max_price':conference.max_price, |
|
|
|
|
'link':conference.link, 'conference_id':conference.id, 'expohit': conference.expohit, |
|
|
|
|
@ -233,7 +233,7 @@ class ConferenceView(AdminView): |
|
|
|
|
return super(ConferenceView, self).get_form(form_class) |
|
|
|
|
obj = self.set_obj() |
|
|
|
|
if obj: |
|
|
|
|
data = {'web_page':obj.web_page, 'foundation_year': obj.foundation_year, |
|
|
|
|
data = {'web_page':obj.web_page, 'place_alt':obj.place_alt, 'foundation_year': obj.foundation_year, |
|
|
|
|
'data_begin':obj.data_begin, 'data_end':obj.data_end, 'currency':obj.currency, |
|
|
|
|
'tax':obj.tax, 'min_price':obj.min_price, 'max_price':obj.max_price, |
|
|
|
|
'link':obj.link, 'conference_id':obj.id, 'expohit': obj.expohit, 'periodic':obj.periodic, |
|
|
|
|
|