help pycharm find the models

This commit is contained in:
Laura Klünder 2016-09-24 14:23:44 +02:00
parent 8679202dbb
commit cb34ed7d4e
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ class Source(models.Model):
A map source, images of levels that can be useful as backgrounds for the map editor
"""
name = models.SlugField(_('source name'), primary_key=True, max_length=50)
package = models.ForeignKey('Package', on_delete=models.CASCADE, related_name='sources',
package = models.ForeignKey('mapdata.Package', on_delete=models.CASCADE, related_name='sources',
verbose_name=_('map package'))
bottom = models.DecimalField(_('bottom coordinate'), max_digits=6, decimal_places=2)