dominno / django-moderation

django-moderation is reusable application for Django framework, that allows to moderate any model objects.
BSD 3-Clause "New" or "Revised" License
269 stars 90 forks source link

relation "django_content_type" does not exist when migrating the db from scratch #183

Open macolo opened 4 years ago

macolo commented 4 years ago

Please see here https://stackoverflow.com/questions/54413800/why-does-the-deployment-process-return-below-error/59054898#59054898

djjudas21 commented 4 years ago

I am running into this issue too. I understand the workaround but I have ~30 forms to add this to :cry: Is there a fix in the pipeline? Thanks :smile:

djjudas21 commented 4 years ago

@macolo most of my forms are defined without explicitly naming the fields. Do I need to define each field explicitly so I can benefit from your workaround?

class AccessoryForm(ModelForm):
    class Meta:
        model = Accessory
        fields = '__all__'
DmytroLitvinov commented 4 years ago

Hi @djjudas21 ,

Sometimes it is not necessary to define all of fields for specific form. So as a workaround it should be fixed as it is described in the link.