You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
619 B
32 lines
619 B
# -*- coding: utf-8 -*-
|
|
from django.db import models
|
|
|
|
|
|
class Language(models.Model):
|
|
"""
|
|
Creates Language model
|
|
"""
|
|
language = models.CharField(max_length=50)
|
|
|
|
def __unicode__(self):
|
|
return self.language
|
|
|
|
class Currency(models.Model):
|
|
"""
|
|
Creates Currency model
|
|
"""
|
|
currency = models.CharField(max_length=20)
|
|
|
|
def __unicode__(self):
|
|
return self.currency
|
|
|
|
class Iata (models.Model):
|
|
"""
|
|
Creates Iata model
|
|
"""
|
|
airport = models.CharField(max_length=50)
|
|
code = models.CharField(max_length=5)
|
|
|
|
def __unicode__(self):
|
|
return self.code
|
|
|
|
|