Tweaking the Payment ModelAdmin/InlineAdmin
Tweaking the Payment ModelAdmin/InlineAdmin

PaymentInline
 - Improving regex group retrieval, ie. m.group('id') instead of m.groupdict()['id']
 - Setting 'empty_label' on the ModelChoiceField so that the topmost choice is selected by default

PaymentAdmin
 - Filtering the 'contract' ModelChoiceField's queryset to restrict it to only Contracts belonging to this Payment's User
 - Setting the 'contract' ModelChoiceField's 'empty_label' to None to make the topmost item selected by default

hackerspacesg/hackdo