2011-06-12 21:31:40 +08:00
|
|
|
from django.contrib.localflavor.mk.models import (
|
|
|
|
MKIdentityCardNumberField, MKMunicipalityField, UMCNField)
|
2011-10-14 05:34:56 +08:00
|
|
|
from django.db import models
|
|
|
|
|
2011-06-12 21:31:40 +08:00
|
|
|
|
|
|
|
class MKPerson(models.Model):
|
|
|
|
first_name = models.CharField(max_length = 20)
|
|
|
|
last_name = models.CharField(max_length = 20)
|
|
|
|
umcn = UMCNField()
|
|
|
|
id_number = MKIdentityCardNumberField()
|
|
|
|
municipality = MKMunicipalityField(blank = True)
|
2011-07-29 18:20:16 +08:00
|
|
|
municipality_req = MKMunicipalityField(blank = False)
|
2011-06-12 21:31:40 +08:00
|
|
|
|
|
|
|
class Meta:
|
|
|
|
app_label = 'localflavor'
|