added fields to models, and an sqldiff, unstable tho..
This commit is contained in:
parent
831e6d57d5
commit
0d68ce2388
|
@ -35,9 +35,13 @@ class OccupationAdmin(admin.ModelAdmin):
|
|||
class RelationAdmin(admin.ModelAdmin):
|
||||
save_on_top = True
|
||||
|
||||
class TheatreGroupAdmin(admin.ModelAdmin):
|
||||
save_on_top = True
|
||||
|
||||
|
||||
admin.site.register(Occupation, OccupationAdmin)
|
||||
admin.site.register(Relation, RelationAdmin)
|
||||
admin.site.register(TheatreGroup, TheatreGroupAdmin)
|
||||
admin.site.register(Person)
|
||||
#class TalkAdmin(admin.ModelAdmin):
|
||||
# inlines = [PadmaVideoInline, AudioInline, ImageInline, DocumentInline]
|
||||
|
|
|
@ -176,4 +176,3 @@ class ItfRegistrationForm(RegistrationForm):
|
|||
new_profile = ItfProfile(user=new_user, subscribed=self.cleaned_data['subscribe'])
|
||||
new_profile.save()
|
||||
return new_user
|
||||
|
||||
|
|
|
@ -197,6 +197,7 @@ class Training(models.Model):
|
|||
where = models.ForeignKey("TheatreGroup")
|
||||
from_when = models.DateField(blank=True, null=True)
|
||||
until_when = models.DateField(blank=True, null=True)
|
||||
locations = generic.GenericRelation("Location")
|
||||
|
||||
|
||||
class Play(ItfModel):
|
||||
|
@ -267,7 +268,7 @@ class TheatreGroup(ItfModel):
|
|||
# location = models.ForeignKey(Location, blank=True, null=True, related_name="theatregroup_location")
|
||||
tel = models.IntegerField(blank=True, null=True)
|
||||
# -- FIXME tel = models.CharField(blank=True, null=True)
|
||||
nature_of_work = models.ManyToManyField("GroupOccupation", blank=True, null=True, through="GroupGroupOccupation")
|
||||
|
||||
languages = models.ManyToManyField("Language", blank=True, null=True)
|
||||
year_founded = models.IntegerField(blank=True, null=True)
|
||||
about = models.TextField(blank=True)
|
||||
|
@ -277,11 +278,12 @@ class TheatreGroup(ItfModel):
|
|||
# resources = models.ManyToManyField("Resource", blank=True, null=True)
|
||||
locations = generic.GenericRelation("Location"),
|
||||
# locations = models.ManyToManyField("Location", blank=True, null=True, related_name="theatregroup_locations")
|
||||
|
||||
nature_of_work = models.ManyToManyField("GroupOccupation", blank=True, null=True, through="GroupGroupOccupation")
|
||||
about = models.TextField(blank=True, null=True)
|
||||
nature_of_work = models.CharField(max_length=255)
|
||||
#nature_of_work = models.CharField(max_length=255)
|
||||
founded = models.CharField(max_length=10)
|
||||
|
||||
trainings = models.ManyToManyField("Training", blank=True, null=True)
|
||||
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
@ -292,8 +294,9 @@ class TheatreGroup(ItfModel):
|
|||
'about': self.about,
|
||||
'email': self.email,
|
||||
'tel':self.tel,
|
||||
'nature_of_work': [ obj for obj in self.nature_of_work_set.all()],
|
||||
'venues': [obj for obj in self.locations_set.alll()]
|
||||
'nature_of_work': [ obj for obj in self.nature_of_work.all().order_by('groupgroupoccupation__is_main')],
|
||||
'venues': [obj for obj in self.locations],
|
||||
#'trainings': [obj for obj in self.trainings_set.all()]
|
||||
}
|
||||
|
||||
def get_title(self):
|
||||
|
|
|
@ -3,16 +3,36 @@
|
|||
<ul class="tabsInnerRight">
|
||||
<li><a href="#about">About</a></li>
|
||||
<li><a href="#people">People</a></li>
|
||||
<li><a href="#productions">Productions</a></li>
|
||||
<li><a href="#productions">Productions</a></li>
|
||||
<li><a href="#gallery">Gallery</a></li>
|
||||
<li><a href="#resources">Resources</a></li>
|
||||
<li><a href="#notes">Notes</a></li>
|
||||
</ul>
|
||||
|
||||
<div id="about" class="tab_content">
|
||||
|
||||
A brief bio and a history of work. should be able to add photos here
|
||||
{% if about %}
|
||||
<div id="" class="">
|
||||
{{ about }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
{% if nature_of_work %}
|
||||
<div id="" class="">
|
||||
{% for work in nature_of_work %}
|
||||
|
||||
{{ work }} : {{ work.is_main }}
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="people" class="tab_content">
|
||||
Active Members, Associates, (Fans? - maybe this is a link with a list popout, so they are not perceived as internal to the group). Photos of users on site should show up. We must SEE the community. Noel needs to send a design for tha tab, which will be used across all "People" tabs.
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user