konova/organisation/models.py

17 lines
631 B
Python
Raw Normal View History

2021-07-01 13:36:07 +02:00
from django.db import models
from konova.models import BaseResource
class Organisation(BaseResource):
name = models.CharField(max_length=500, unique=True)
address = models.CharField(max_length=500, null=True, blank=True)
city = models.CharField(max_length=500, null=True, blank=True)
postal_code = models.CharField(max_length=100, null=True, blank=True)
phone = models.CharField(max_length=500, null=True, blank=True)
email = models.EmailField(max_length=500, null=True, blank=True)
facsimile = models.CharField(max_length=500, null=True, blank=True)
def __str__(self):
2021-07-01 14:38:57 +02:00
return self.name