praktikum6 18.11
This commit is contained in:
1 parent
3efafd6fe6
commit
f66c98fa11
5850 files changed
+9081
-589899
No files matched your search
@@ -743,8 +743,12 @@ class Field(RegisterLookupMixin):
|
||||
if not getattr(cls, self.attname, None):
|
||||
setattr(cls, self.attname, DeferredAttribute(self.attname))
|
||||
if self.choices:
|
||||
setattr(cls, 'get_%s_display' % self.name,
|
||||
partialmethod(cls._get_FIELD_display, field=self))
|
||||
if not hasattr(cls, 'get_%s_display' % self.name):
|
||||
setattr(
|
||||
cls,
|
||||
'get_%s_display' % self.name,
|
||||
partialmethod(cls._get_FIELD_display, field=self),
|
||||
)
|
||||
|
||||
def get_filter_kwargs_for_object(self, obj):
|
||||
"""
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in new issue
Block a user