~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to sphinxdoc/models.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
class App(models.Model):
10
10
    name = models.CharField(max_length=100)
11
11
    slug = models.SlugField(unique=True,
12
 
            help_text=u'Used in the URL for the app. Must be unique.')
 
12
                            help_text=u'Used in the URL for the app. Must be unique.')
13
13
    path = models.CharField(max_length=255)
14
 
    
 
14
 
15
15
    def __unicode__(self):
16
16
        return self.name
17
17
 
18
18
    @models.permalink
19
19
    def get_absolute_url(self):
20
20
        return ('doc-index', (), {'slug': self.slug})
21
 
    
 
21
 
22
22
    class Meta:
23
 
        app_label = 'sphinxdoc'
 
 
b'\\ No newline at end of file'
 
23
        app_label = 'sphinxdoc'