etianen / django-watson

Full-text multi-table search application for Django. Easy to install and use, with good performance.
BSD 3-Clause "New" or "Revised" License
1.21k stars 129 forks source link

Add AppConfig with default_auto_field set #287

Closed CristopherH95 closed 3 years ago

CristopherH95 commented 3 years ago

Hello!

I noticed #285 and figured I would take a stab at it. I just added apps.py with an AppConfig subclass which sets the default_auto_field setting to AutoField. To my understanding, Django >= 3.2 (the versions where the warning mentioned in the issue appears) automatically loads the AppConfig subclass found in apps.py, so I think just adding this should address the issue.

resolves #285.

etianen commented 3 years ago

Great, thanks!