prednasky¶
prednasky.admin¶
- class prednasky.admin.Seznam_PrednaskaInline(parent_model, admin_site)[zdroj]¶
Bases:
TabularInline
- model¶
alias of
Prednaska_seznamy
- extra = 0¶
- readonly_fields = ['prednaska__nazev', 'prednaska__obor', 'prednaska__org', 'prednaska__popis', 'prednaska__anotace']¶
- exclude = ['prednaska']¶
- property media¶
- class prednasky.admin.SeznamAdmin(*args, **kwargs)[zdroj]¶
Bases:
VersionAdmin
- list_display = ['soustredeni', 'stav']¶
- inlines = [<class 'prednasky.admin.Seznam_PrednaskaInline'>]¶
- property media¶
prednasky.forms¶
- class prednasky.forms.NewPrednaskyForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[zdroj]¶
Bases:
Form
- base_fields = {'ucastnik': <django.forms.fields.CharField object>}¶
- declared_fields = {'ucastnik': <django.forms.fields.CharField object>}¶
- property media¶
prednasky.models¶
- class prednasky.models.Seznam(id, soustredeni, stav)[zdroj]¶
Bases:
Model
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- soustredeni¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- stav¶
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_stav_display(*, field=<django.db.models.fields.IntegerField: stav>)¶
- hlasovani_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- objects = <django.db.models.manager.Manager object>¶
- prednaska_set¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- soustredeni_id¶
- class prednasky.models.Prednaska(id, nazev, org, popis, anotace, obtiznost, obor, klicova)[zdroj]¶
Bases:
Model
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- nazev¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- org¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- popis¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- anotace¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- obtiznost¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- obor¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- klicova¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- seznamy¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- get_obtiznost_display(*, field=<django.db.models.fields.IntegerField: obtiznost>)¶
- hlasovani_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- objects = <django.db.models.manager.Manager object>¶
- org_id¶
- class prednasky.models.Hlasovani(id, prednaska, body, ucastnik, seznam)[zdroj]¶
Bases:
Model
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prednaska¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- body¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- ucastnik¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- seznam¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- get_body_display(*, field=<django.db.models.fields.IntegerField: body>)¶
- objects = <django.db.models.manager.Manager object>¶
- prednaska_id¶
- seznam_id¶
prednasky.tests¶
prednasky.urls¶
Soubor sloužící jako „router“, tj. zde se definují url adresy a na co ukazují:
prednasky/
newPrednaska()
prednasky/hotovo
Prednaska_hotovo()
prednasky/metaseznam_prednasek
(metaseznam-list)MetaSeznamListView
prednasky/seznam_prednasek/<int:seznam>/export
(seznam-export)SeznamExportView()
prednasky/seznam_prednasek/<int:seznam>/
(seznam-list)SeznamListView
prednasky.views¶
- class prednasky.views.MetaSeznamListView(**kwargs)[zdroj]¶
Bases:
ListView
- template_name = 'prednasky/metaseznam_prednasek.html'¶