I would prefer that django report the problem when two properties are
conflicting or may conflict in case the field is created.
--
Ticket URL: <https://code.djangoproject.com/ticket/32731>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
I don't think there is much Django can do in such cases. It's an issue in
your code.
--
Ticket URL: <https://code.djangoproject.com/ticket/32731#comment:1>
Comment (by Jej):
Of course it's an issue in my code. But django warn about a lot of issues
in user code. Why not this one and just silently does nothing?!!
--
Ticket URL: <https://code.djangoproject.com/ticket/32731#comment:2>
--
Ticket URL: <https://code.djangoproject.com/ticket/32731#comment:3>
Comment (by Mariusz Felisiak):
Replying to [comment:2 Jej]:
> Django warn about a lot of issues in user code. Why not this one and
just silently does nothing? Why a field in the model would be ignored
without notice?
Because you override it in your own code, so it's not a model field
anymore. I'm happy to review a patch if you know how to check easily that
a property overrides a model field in the same class.
--
Ticket URL: <https://code.djangoproject.com/ticket/32731#comment:4>
Comment (by Jej):
Ok. Thanks for the explanation of the underlaying.
--
Ticket URL: <https://code.djangoproject.com/ticket/32731#comment:5>