-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64ec56d
commit 422e92d
Showing
7 changed files
with
178 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Generated by Django 2.0 on 2018-01-08 07:06 | ||
|
||
import cities.models | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cities', '0010_adjust_unique_attributes'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='city', | ||
name='country', | ||
field=models.ForeignKey(on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='cities', to=settings.CITIES_COUNTRY_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='city', | ||
name='region', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='cities', to='cities.Region'), | ||
), | ||
migrations.AlterField( | ||
model_name='city', | ||
name='subregion', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='cities', to='cities.Subregion'), | ||
), | ||
migrations.AlterField( | ||
model_name='country', | ||
name='continent', | ||
field=models.ForeignKey(null=True, on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='countries', to=settings.CITIES_CONTINENT_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='district', | ||
name='city', | ||
field=models.ForeignKey(on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='districts', to=settings.CITIES_CITY_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='postalcode', | ||
name='city', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='postal_codes', to=settings.CITIES_CITY_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='postalcode', | ||
name='district', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='postal_codes', to='cities.District'), | ||
), | ||
migrations.AlterField( | ||
model_name='postalcode', | ||
name='region', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='postal_codes', to='cities.Region'), | ||
), | ||
migrations.AlterField( | ||
model_name='postalcode', | ||
name='subregion', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='postal_codes', to='cities.Subregion'), | ||
), | ||
migrations.AlterField( | ||
model_name='region', | ||
name='country', | ||
field=models.ForeignKey(on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='regions', to=settings.CITIES_COUNTRY_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='subregion', | ||
name='region', | ||
field=models.ForeignKey(on_delete=cities.models.SET_NULL_OR_CASCADE, related_name='subregions', to='cities.Region'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
from django.conf.urls import include, url | ||
from django.conf.urls import url | ||
from django.contrib import admin | ||
from django.core.exceptions import ImproperlyConfigured | ||
|
||
from cities.util import patterns | ||
|
||
|
||
urlpatterns = patterns( | ||
'', | ||
# Examples: | ||
# url(r'^$', 'test_project.views.home', name='home'), | ||
# url(r'^blog/', include('blog.urls')), | ||
app_name = "test_app" | ||
|
||
url(r'^admin/', include(admin.site.urls)), | ||
) | ||
try: | ||
from django.conf.urls import include | ||
# Django < 2.0 | ||
urlpatterns = patterns( | ||
'', | ||
# Examples: | ||
# url(r'^$', 'test_project.views.home', name='home'), | ||
# url(r'^blog/', include('blog.urls')), | ||
|
||
url(r'^admin/', include(admin.site.urls)), | ||
) | ||
except ImproperlyConfigured: | ||
# Django >= 2.0 | ||
urlpatterns = patterns( | ||
'', | ||
# Examples: | ||
# url(r'^$', 'test_project.views.home', name='home'), | ||
# url(r'^blog/', include('blog.urls')), | ||
|
||
url(r'^admin/', admin.site.urls), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters