File: models.py

package info (click to toggle)
python-django-rest-framework-guardian 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 136 kB
  • sloc: python: 267; makefile: 7; sh: 6
file content (13 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
from django.db import models
from django.utils.translation import gettext_lazy as _


class BasicModel(models.Model):
    text = models.CharField(max_length=100, help_text=_('Text description.'))


class BasicPermModel(models.Model):
    text = models.CharField(max_length=100)

    class Meta:
        app_label = 'tests'