Re: Improve migration conflict detection

2020-02-11 Thread jackotonye
Definitely a plus one on auto resolving migrations a test package still in planning aims to solve this https://github.com/jackton1/django-migration-resolver-hook > On Feb 11, 2020, at 1:42 PM, Caio Ariede wrote: > > Hey folks, > > I was looking at the code used to detect conflicts in migrati

Re: Allow disabling choices in a

2018-04-30 Thread jackotonye
This might be a late answer but this is a simplified version that can be modified using the form instance. You can either pass a list of values to be disabled i.e def __init__(self, disabled_choices, *args, **kwargs): self.disabled_choices = disabled_choices OR from django.forms import

[Mixins] - Order of the Mixins - Is it a bug?

2018-06-15 Thread jackotonye
By design mixins are applied in the order they are inherited. `class A: pass` `class B: pass` ``` class C(A, B): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # This will call A.__init__() then B.__init__() ``` -- You received th