It's a symptom of the poor design of ModelAdmin (especially compared to
View). It is just "normal" python classes, but it has methods on it which
feel request specific so it's very easy to fall into the trap of thinking
of it as a request level object not a process level object. Model
instances, fo
Hi All,
It seems to me this is just how class inheritance works in Python. Nothing
special in Django here, it just might not be intuitive.
I do think deepcopy has too much overhead to warrant a deepcopy by default
in Django for everyone, but it may help you to use it in your code.
Collin
On T
Hi,
I had my fun when I tried to add more inline stuff to a Admin form, and I ended
up doing thiskind of stuff:
https://janimagik.wordpress.com/2015/05/05/django-admin-and-inline-chaining/
I guess problem is how Django admin uses metaclass to do some magic behind the
scenes.
On Thu, 2 Jul 201
I think it could be - if not the exact same issue - one that would be fixed
by the same patch. My specific use case is something like this:
class MyUserAdmin(UserAdmin):
def get_fieldsets(self, request, obj=None):
fieldsets = super().get_fieldsets(request, obj)
fieldsets[0][1]
Could it be https://code.djangoproject.com/ticket/22828 ?
On Wednesday, July 1, 2015 at 5:32:48 PM UTC-4, kny...@knyg.ht wrote:
>
> Hello all,
>
> So, I was talking to kezabelle on IRC some months back about a problem I
> was having, and finally remembered to post something.
>
> If I inherit from
Hello all,
So, I was talking to kezabelle on IRC some months back about a problem I
was having, and finally remembered to post something.
If I inherit from an admin class, and override something like get_fields(),
I was getting back duplicates of fields if I used super() to get the
existing fi