Since the special usercontest version of Django admin has limited
Since the special usercontest version of Django admin has limited functionality, we only want to use it for ‘regular’ users - that is users who otherwise couldn’t create their own contests. In essence, if the user can already create contests in some other way (or usercontests are disabled) this function should return False.
- class oioioi.usercontests.admin.UserRoundInlineFormset(data=None, files=None, instance=None, save_as_new=False, prefix=None, queryset=None, **kwargs)¶
A formset for child objects related to a parent.
Hook for doing any extra formset-wide cleaning after Form.clean() has been called on every form. Any ValidationError raised by this method will not be associated with a particular form; it will be accessible via formset.non_form_errors()
- class oioioi.usercontests.admin.UserRoundInline(parent_model, admin_site)¶
Options for inline editing of
fk_nameto specify the attribute name of the
modelto its parent. This is required if
modelhas more than one
ForeignKeyto its parent.