mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-18 01:21:09 +00:00
Set self to something in the replace_orig_field doctest, so PyFlakes doesn't complain.
This commit is contained in:
parent
7cd60aa977
commit
027349bd9a
1 changed files with 1 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ class TranslationBaseModelAdmin(BaseModelAdmin):
|
|||
Returns a new list with replaced fields. If `option` contains no
|
||||
registered fields, it is returned unmodified.
|
||||
|
||||
>>> self = TranslationAdmin() # PyFlakes
|
||||
>>> print(self.trans_opts.fields.keys())
|
||||
['title',]
|
||||
>>> get_translation_fields(self.trans_opts.fields.keys()[0])
|
||||
|
|
|
|||
Loading…
Reference in a new issue