This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add publishing feature to ICEKit Events
Add publishing features to events. NOTE: This requires the latest upstream changes to django-icekit that improve support for polymorphic models, particularly commit a025303c4b84fd52f7c29b8fe50db0748c9e257b - `AbstractEvent` is now a publishable model - updated parent and child admins to show publishing features - update test settings to apply publishing features - update basic event views to work properly with publishing: show visible events only with support for ?edit verified draft links - add publishing extra to django-icekit requirements.
- Loading branch information
Showing
7 changed files
with
87 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('icekit_events', '0016_auto_20160803_1338'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='event', | ||
name='publishing_is_draft', | ||
field=models.BooleanField(default=True, db_index=True, editable=False), | ||
), | ||
migrations.AddField( | ||
model_name='event', | ||
name='publishing_linked', | ||
field=models.OneToOneField(related_name='publishing_draft', null=True, on_delete=django.db.models.deletion.SET_NULL, editable=False, to='icekit_events.Event'), | ||
), | ||
migrations.AddField( | ||
model_name='event', | ||
name='publishing_modified_at', | ||
field=models.DateTimeField(default=django.utils.timezone.now, editable=False), | ||
), | ||
migrations.AddField( | ||
model_name='event', | ||
name='publishing_published_at', | ||
field=models.DateTimeField(null=True, editable=False), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters