Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed import

  • Loading branch information...
commit e384b4e69c2bea01ecc38cb47a0266a1878da4a9 1 parent f1bf435
Shrenik Patel authored August 14, 2012

Showing 1 changed file with 11 additions and 9 deletions. Show diff stats Hide diff stats

  1. 20  country_dialcode/models.py
20  country_dialcode/models.py
... ...
@@ -1,6 +1,5 @@
1 1
 from django.db import models
2 2
 from django.utils.translation import ugettext as _
3  
-from datetime import *
4 3
 from common.intermediate_model_base_class import Model
5 4
 
6 5
 prefix_type_list = ((0, _("Landline")),
@@ -17,14 +16,14 @@ class Country(Model):
17 16
     For instance : USA, 1, United States
18 17
     """
19 18
     countrycode = models.CharField(max_length=3, 
20  
-                                   verbose_name=_('ISO alpha-3'),
21  
-                                   help_text=_("Enter Country Code. e.g. USA - ISO alpha-3"))
  19
+        verbose_name=_('ISO alpha-3'),
  20
+        help_text=_("Enter Country Code. e.g. USA - ISO alpha-3"))
22 21
     iso2 = models.CharField(verbose_name=_('ISO alpha-2'), max_length=2)
23 22
     countryprefix = models.IntegerField(max_length=12,
24  
-                                        verbose_name=_('Prefix'),
25  
-                                        help_text=_("Enter Country Prefix. e.g. 1"))
  23
+        verbose_name=_('Prefix'),
  24
+        help_text=_("Enter Country Prefix. e.g. 1"))
26 25
     countryname = models.CharField(max_length=240, verbose_name=_('Name'),
27  
-                         help_text=_("Enter Country Name. e.g. United States"))
  26
+        help_text=_("Enter Country Name. e.g. United States"))
28 27
     
29 28
     class Meta:
30 29
         db_table = 'dialcode_country'
@@ -42,11 +41,14 @@ class Prefix(Model):
42 41
     These are the prefixes and destinations
43 42
     For instance : 44 ; United Kingdom
44 43
     """
45  
-    prefix = models.IntegerField(primary_key=True, help_text=_("Enter Prefix"))
  44
+    prefix = models.IntegerField(primary_key=True,
  45
+                                 help_text=_("Enter Prefix"))
46 46
     destination = models.CharField(max_length=180,
47 47
                                    help_text=_("Enter Destination"))
48  
-    country_id = models.ForeignKey(Country, db_column="country_id", null=True,
49  
-                                   blank=True, verbose_name=_("Country Code"),
  48
+    country_id = models.ForeignKey(Country,
  49
+                                   db_column="country_id", null=True,
  50
+                                   blank=True,
  51
+                                   verbose_name=_("Country Code"),
50 52
                                    help_text=_("Select Country"))
51 53
     carrier_name = models.CharField(max_length=180,
52 54
                                     help_text=_("Enter Carrier Name"))

0 notes on commit e384b4e

Please sign in to comment.
Something went wrong with that request. Please try again.