Skip to content

Commit

Permalink
Added default auto field in application config
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Dec 21, 2021
1 parent 64fd815 commit 0fd3f42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notifications/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

class Config(AppConfig):
name = "notifications"
default_auto_field = 'django.db.models.AutoField'

def ready(self):
super(Config, self).ready()
Expand Down

2 comments on commit 0fd3f42

@bsolomon1124
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pandafy Doesn't this require a migration?

@pandafy
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bsolomon1124, no it does not.

$ ./manage.py makemigrations
No changes detected

Please sign in to comment.