Skip to content

Commit

Permalink
Default apps.py file to define the default primary key field (#272)
Browse files Browse the repository at this point in the history
* Default apps.py file to define the default primary key field

* apps.py name

Co-authored-by: marianoeramirez <Sosinformatico1990>
  • Loading branch information
marianoeramirez authored Aug 8, 2022
1 parent d8a45ce commit 73322f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
TBR
2022-08-7
Default apps.py file to define the default primary key field

2022-06-10
Django 4.0 support


2021-10-22 3.9.0
Removed Tracis CI
Fix SubRegionSerializer URL #257
Expand Down
5 changes: 5 additions & 0 deletions src/cities_light/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig

class CitiesLightConfig(AppConfig):
default_auto_field = 'django.db.models.AutoField'
name = 'cities_light'

0 comments on commit 73322f1

Please sign in to comment.