On Fri, Apr 10, 2020 at 11:13 PM Jorge Gimeno wrote:
>
> By chance did you change Python versions as well?
>
>
No, it's the same Python version (3.6). Anyway, I asked also on Stack
Overflow and found a solution:
https://stackoverflow.com/questions/61140458/how-do-i-specify-order-of-fields-in-djan
On 10/04/2020 6:24 pm, אורי wrote:
Hi Mike,
Thanks for your suggestion. But right now, I'm looking for a solution
without changing the database and the models.
This is the way I do it without changing the database. The only model
changes are verbose name and overriding two Django model metho
python dicts are ordered in terms of insertion order as an implementation
detail in cpython 3.6, and was made part of the spec in 3.7. You might be
getting bit by this.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
On Fri, Apr 10, 2020, 12:29 AM אורי wrote:
> Hi,
>
> We are using Django 2.2 and I want to upgrade to Django 3.0. We have a
> mixin (written in 2017) that add fields to forms:
>
> class LocalizedFirstLastNameMixin(object):
> def __init__(self, *args, **kwargs):
> self.language_code =
Hi Mike,
Thanks for your suggestion. But right now, I'm looking for a solution
without changing the database and the models. I agree that first name /
last name is not the best way to name people but it's already this way in
my website (Speedy Net). People are not required to use a real /
certific
On 10/04/2020 5:28 pm, אורי wrote:
Hi,
We are using Django 2.2 and I want to upgrade to Django 3.0. We have a
mixin (written in 2017) that add fields to forms:
class LocalizedFirstLastNameMixin(object):
def __init__(self, *args, **kwargs):
self.language_code = kwargs.pop('langua
Hi,
I want to add that I checked the Django 3.0 release notes [
https://docs.djangoproject.com/en/3.0/releases/3.0/ ] and also releases
from 3.0.1 to 3.0.5 and I didn't find any documentation of this issue.
אורי
u...@speedy.net
On Fri, Apr 10, 2020 at 10:28 AM אורי wrote:
> Hi,
>
> We ar
Hi,
We are using Django 2.2 and I want to upgrade to Django 3.0. We have a
mixin (written in 2017) that add fields to forms:
class LocalizedFirstLastNameMixin(object):
def __init__(self, *args, **kwargs):
self.language_code = kwargs.pop('language_code', 'en')
super().__init__(
8 matches
Mail list logo