Remove id field from mapdata models and make name their primary key
This commit is contained in:
parent
5397a4d2d4
commit
4b5f13ea48
6 changed files with 11 additions and 34 deletions
|
@ -8,7 +8,7 @@ class Package(models.Model):
|
|||
"""
|
||||
A c3nav map package
|
||||
"""
|
||||
name = models.CharField(_('package identifier'), unique=True, max_length=50,
|
||||
name = models.SlugField(_('package identifier'), primary_key=True, max_length=50,
|
||||
help_text=_('e.g. de.c3nav.33c3.base'))
|
||||
depends = models.ManyToManyField('Package')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue