Is the collect static of ManifestStaticFilesStorage buggy?

2024-04-11 Thread run_the_race
Hi All, When collecting the *wc-take-message.min.js* file, it fails to find the file *x-field.min.css* that is in the correct place. This is my manifest storage that enables hashing JS modules imports: *from django.contrib.staticfiles.storage import ManifestStaticFilesStorage,class LcManif

Is Overriding widget templates buggy?

2022-04-03 Thread run_the_race
I was going to report a bug, but the guide recommends asking here first. While trying to override a built in widget template (still stuck on it here: https://forum.djangoproject.com/t/overriding-widgets-templates-not-working-following-help-template-loader-not-searching-app-dirs/12974), I came

Re: How to get user instance in forms.py?

2022-02-16 Thread run_the_race
If you using python3, I recommend changing: `super(TransfersForm, self).__init__(*args, **kwargs)` to `super().__init__(*args, **kwargs)` Maybe self.user is being lost when the form is initialised, so store it tempory in a variable, try: def __init__(self, *args, **kwargs): user = = kwargs.