I have models, and now i add custom permission:
class Menu(models.Model):
name = models.CharField(max_length=30)
podmenua = models.BooleanField()
poradi = models.CharField(max_length=2)
url = models.CharField(max_length=30)
def __str__(self):
return self.name
def get_absolute_url(self):
return "/%s/" %self.url
class Meta:
permissions = (("Koukat_nevim", "Toto je proste zkouska"),)
i delete permission from my database, than syncdb, and when i look into my
databse, there wasnt the custom permission. Why?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/7fbd3f34-665c-4a48-b4fe-ba12f75e7d5b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.