Temp commit

This commit is contained in:
littlewolf 2019-10-01 07:43:38 +03:00
parent 661a7b3b6f
commit e3d26b5dd1
8 changed files with 83 additions and 0 deletions

View File

3
apps/migrates/admin.py Normal file
View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

5
apps/migrates/apps.py Normal file
View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class MigratesConfig(AppConfig):
name = 'migrates'

View File

68
apps/migrates/models.py Normal file
View File

@ -0,0 +1,68 @@
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from django.contrib.gis.db import models
class Cities(models.Model):
using = 'legacy'
name = models.CharField(max_length=255, blank=True, null=True)
country_code = models.CharField(max_length=3, blank=True, null=True)
country_code_2 = models.CharField(max_length=2, blank=True, null=True)
region_code = models.CharField(max_length=255, blank=True, null=True)
subregion_code = models.CharField(max_length=255, blank=True, null=True)
is_island = models.IntegerField(blank=True, null=True)
zip_code = models.CharField(max_length=9, blank=True, null=True)
situation = models.CharField(max_length=255, blank=True, null=True)
map_ref = models.CharField(max_length=255, blank=True, null=True)
map1 = models.CharField(max_length=255, blank=True, null=True)
map2 = models.CharField(max_length=255, blank=True, null=True)
latitude = models.FloatField(blank=True, null=True)
longitude = models.FloatField(blank=True, null=True)
encima_id = models.IntegerField(blank=True, null=True)
related_city_id = models.IntegerField(blank=True, null=True)
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
index_name = models.CharField(max_length=255, blank=True, null=True)
class Meta:
managed = False
db_table = 'cities'
unique_together = (('name', 'region_code', 'country_code'),)
class CityNames(models.Model):
using = 'legacy'
name = models.CharField(max_length=100, blank=True, null=True)
locale = models.CharField(max_length=5, blank=True, null=True)
city = models.ForeignKey(Cities, models.DO_NOTHING, blank=True, null=True)
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
class Meta:
managed = False
db_table = 'city_names'
unique_together = (('city', 'name', 'locale'),)
class CityPhotos(models.Model):
using = 'legacy'
city_id = models.IntegerField(blank=True, null=True)
attachment_file_name = models.CharField(max_length=255, blank=True, null=True)
attachment_content_type = models.CharField(max_length=255, blank=True, null=True)
geometries = models.CharField(max_length=1024, blank=True, null=True)
attachment_file_size = models.IntegerField(blank=True, null=True)
attachment_updated_at = models.DateTimeField(blank=True, null=True)
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
class Meta:
managed = False
db_table = 'city_photos'

3
apps/migrates/tests.py Normal file
View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
apps/migrates/views.py Normal file
View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

View File

@ -91,6 +91,7 @@ EXTERNAL_APPS = [
'rest_framework_simplejwt.token_blacklist', 'rest_framework_simplejwt.token_blacklist',
'solo', 'solo',
'phonenumber_field', 'phonenumber_field',
'apps.migrates'
] ]