Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tidied up fields

  • Loading branch information...
commit 5ec93b1d9c9c8827f4df3cdfb9d3858d18d5ab8d 1 parent 0b964a4
daniele authored
View
1  contacts_and_people/admin.py
@@ -21,7 +21,6 @@ class EntityAdmin(admin.ModelAdmin):
'fields': ('slug',),
}),
)
- print 'hello'
admin.site.register(models.Entity,EntityAdmin)
View
6 news_and_events/admin.py
@@ -7,7 +7,7 @@ class Meta:
list_display = ('short_title', 'date',)
filter_horizontal = (
'publishing_destinations',
- 'related_articles',
+ 'related_newsarticles',
'related_pages',
'related_people',
)
@@ -28,7 +28,7 @@ class NewsArticleAdmin(NewsAndEventsAdmin):
}),
('Related articles, pages and people', {
'classes': ('collapse',),
- 'fields': ('related_articles', 'related_pages', 'related_people',),
+ 'fields': ('related_newsarticles', 'related_events','related_pages', 'related_people',),
}),
('Additional options', {
'classes': ('collapse',),
@@ -50,7 +50,7 @@ class EventAdmin(NewsAndEventsAdmin):
}),
('Related articles, pages and people', {
'classes': ('collapse',),
- 'fields': ('related_articles', 'related_pages', 'related_people',),
+ 'fields': ('related_newsarticles', 'related_events','related_pages', 'related_people',),
}),
('Additional options', {
'classes': ('collapse',),
View
8 news_and_events/models.py
@@ -33,8 +33,12 @@ class Meta:
help_text = u"A page with further information",
null = True, blank = True
)
- related_articles = models.ManyToManyField(
- 'self',
+ related_newsarticles = models.ManyToManyField(
+ 'NewsArticle',
+ null = True, blank = True
+ )
+ related_events = models.ManyToManyField(
+ 'Event',
null = True, blank = True
)
related_pages = models.ManyToManyField(
Please sign in to comment.
Something went wrong with that request. Please try again.