mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
@@ -19,11 +19,13 @@ class Article(models.Model):
|
||||
def __str__(self):
|
||||
return self.headline
|
||||
|
||||
|
||||
class ArticleSelectOnSave(Article):
|
||||
class Meta:
|
||||
proxy = True
|
||||
select_on_save = True
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class SelfRef(models.Model):
|
||||
selfref = models.ForeignKey('self', null=True, blank=True,
|
||||
|
||||
Reference in New Issue
Block a user