from django.db import models
from django.db.models import DecimalField, ForeignKey
from django.utils.translation import ugettext as _

from mimir.models.area import Area

# Represents a location in a map.
class Location(models.Model):
    class Meta:
        app_label = "mimir"
        verbose_name = _("Location")
        verbose_name_plural = _("Locations")

    area = ForeignKey(Area, verbose_name=_("Area"));
    x = DecimalField(max_digits=5, decimal_places=4)
    y = DecimalField(max_digits=5, decimal_places=4)
