PR
Size: a a a
PR
DT
PR
🥌
DT
value = request.GET.get('somekey')
value.strip()
# + любые действия над значением
form = FormName(initial={'field_name': value})PR
class TransactionCreate(CreateView):
[...]
def get_initial(self):
account = get_object_or_404(Account, uuid=self.kwargs['slug'])
created = datetime.now().strftime("%Y-%m-%d %H:%M")
return {'account': account, 'created': created}
IV
IV
IV
AO
AO
PR
AO
AO
AO
AO
AO
NK