Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed import

  • Loading branch information...
commit e384b4e69c2bea01ecc38cb47a0266a1878da4a9 1 parent f1bf435
@shrenik shrenik authored
Showing with 11 additions and 9 deletions.
  1. +11 −9 country_dialcode/models.py
View
20 country_dialcode/models.py
@@ -1,6 +1,5 @@
from django.db import models
from django.utils.translation import ugettext as _
-from datetime import *
from common.intermediate_model_base_class import Model
prefix_type_list = ((0, _("Landline")),
@@ -17,14 +16,14 @@ class Country(Model):
For instance : USA, 1, United States
"""
countrycode = models.CharField(max_length=3,
- verbose_name=_('ISO alpha-3'),
- help_text=_("Enter Country Code. e.g. USA - ISO alpha-3"))
+ verbose_name=_('ISO alpha-3'),
+ help_text=_("Enter Country Code. e.g. USA - ISO alpha-3"))
iso2 = models.CharField(verbose_name=_('ISO alpha-2'), max_length=2)
countryprefix = models.IntegerField(max_length=12,
- verbose_name=_('Prefix'),
- help_text=_("Enter Country Prefix. e.g. 1"))
+ verbose_name=_('Prefix'),
+ help_text=_("Enter Country Prefix. e.g. 1"))
countryname = models.CharField(max_length=240, verbose_name=_('Name'),
- help_text=_("Enter Country Name. e.g. United States"))
+ help_text=_("Enter Country Name. e.g. United States"))
class Meta:
db_table = 'dialcode_country'
@@ -42,11 +41,14 @@ class Prefix(Model):
These are the prefixes and destinations
For instance : 44 ; United Kingdom
"""
- prefix = models.IntegerField(primary_key=True, help_text=_("Enter Prefix"))
+ prefix = models.IntegerField(primary_key=True,
+ help_text=_("Enter Prefix"))
destination = models.CharField(max_length=180,
help_text=_("Enter Destination"))
- country_id = models.ForeignKey(Country, db_column="country_id", null=True,
- blank=True, verbose_name=_("Country Code"),
+ country_id = models.ForeignKey(Country,
+ db_column="country_id", null=True,
+ blank=True,
+ verbose_name=_("Country Code"),
help_text=_("Select Country"))
carrier_name = models.CharField(max_length=180,
help_text=_("Enter Carrier Name"))
Please sign in to comment.
Something went wrong with that request. Please try again.