from django.db import models

import roman


class Region(models.Model):
    id = models.IntegerField(primary_key=True)

    name = models.CharField(
        db_index=True,
        unique=True,
        max_length=64
    )

    def __str__(self):
        return self.name

    class Meta:
    default_permissions = ()


class Constellation(models.Model):
    id = models.IntegerField(primary_key=True)

    region = models.ForeignKey(
        Region,
        related_name='constellations',
        db_index=True)

    name = models.CharField(
        db_index=True,
        unique=True,
        max_length=64
    )

    def __str__(self):
        return self.name

    class Meta:
    default_permissions = ()


class SolarSystem(models.Model):
    id = models.IntegerField(primary_key=True)

    constellation = models.ForeignKey(
        Constellation,
        related_name='systems',
        db_index=True
    )

    name = models.CharField(
        db_index=True,
        unique=True,
        max_length=64
    )

    security = models.FloatField()

    def __str__(self):
        return self.name

    class Meta:
    default_permissions = ()


class Planet(models.Model):
    id = models.IntegerField(primary_key=True)

    system = models.ForeignKey(
        SolarSystem,
        related_name='planets',
        db_index=True
    )

    number = models.IntegerField(db_index=True)

    def as_roman(self):
        return roman.toRoman(self.number)

    class Meta:
    default_permissions = ()


class Moon(models.Model):
    id = models.IntegerField(primary_key=True)

    planet = models.ForeignKey(
        Planet,
        related_name='moons',
        db_index=True
    )

    number = models.IntegerField(db_index=True)

    class Meta:
        default_permissions = ()

@@ -273,32 +273,36 @@
     class Meta:%0A
+    
     default_perm
@@ -306,32 +306,32 @@
 ermissions = ()%0A
-
 %0A%0Aclass Constell
@@ -669,32 +669,36 @@
     class Meta:%0A
+    
     default_perm
@@ -702,32 +702,32 @@
 ermissions = ()%0A
-
 %0A%0Aclass SolarSys
@@ -1111,32 +1111,36 @@
     class Meta:%0A
+    
     default_perm
@@ -1144,32 +1144,32 @@
 ermissions = ()%0A
-
 %0A%0Aclass Planet(m
@@ -1472,24 +1472,28 @@
 class Meta:%0A
+    
     default_

Fix indentation in last commit.