loefsys.indexpage.models package
Models package for indexpage module.
- class loefsys.indexpage.models.Announcement(*args, **kwargs)
Bases:
Model
Model representing an announcement on the index page.
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- content
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- announcement_start
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- announcement_end
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- published
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
Submodules
- loefsys.indexpage.models.announcement module
Announcement
Announcement.title
Announcement.content
Announcement.announcement_start
Announcement.announcement_end
Announcement.published
Announcement.created_at
Announcement.updated_at
Announcement.DoesNotExist
Announcement.MultipleObjectsReturned
Announcement.get_next_by_created_at()
Announcement.get_next_by_updated_at()
Announcement.get_previous_by_created_at()
Announcement.get_previous_by_updated_at()
Announcement.id
Announcement.objects