Revision 5bd27846 cloudcmsguide/models.py

b/cloudcmsguide/models.py
93 93
    author = models.ForeignKey(User, related_name='guide_pages', verbose_name=_('author'))
94 94
    language = models.CharField(max_length=255, choices=settings.LANGUAGES)
95 95

  
96
    published_on = models.DateTimeField(_('published on'), blank=True, null=True, default=datetime.now,
96
    published_on = models.DateTimeField(_('published on'), blank=True, null=False, default=datetime.now,
97 97
        help_text=_('Will be filled in automatically when entry gets published.'))
98 98
    last_changed = models.DateTimeField(_('last change'), auto_now=True, editable=False)
99 99

  
......
112 112

  
113 113
    def __unicode__(self):
114 114
        return self.title
115
    
116
    def get_next(self):
117
        return self.get_next_by_published_on(service=self.service)
118

  
119
    def get_previous(self):
120
        return self.get_previous_by_published_on(service=self.service)
115 121

  
116 122
    def get_absolute_url(self):
117 123
        try:

Also available in: Unified diff