AF
Подскажите как можно сделать стандартные поля модели нередактируемыми?
Что бы после записи в БД, некоторые поля были недоступны для изменений.
Size: a a a
AF
E
AF
YK
AF
YK
E
E
YK
AF
E
YK
E
E
AF
E
AF
E
Б
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
class Bookmark(models.Model):
user = models.ForeignKey(MyUser, verbose_name=u'bookmarks')
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
object_id = models.PositiveIntegerField()
content_object = GenericForeignKey('content_type', 'object_id’)
content_type = models.MultipleForeignKey(AnyModel)
AF