mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-04-14 02:10:58 +00:00
Remove old commented code.
This commit is contained in:
parent
9e41538035
commit
f238d6b00d
1 changed files with 0 additions and 17 deletions
|
|
@ -143,23 +143,6 @@ def patch_constructor(model):
|
|||
model.__init__ = new_init
|
||||
|
||||
|
||||
#def translated_model_initialized(field_names, instance, **kwargs):
|
||||
#print "translated_model_initialized instance:", \
|
||||
#instance, ", field:", field_names
|
||||
#for field_name in field_names:
|
||||
#initial_val = getattr(instance, field_name)
|
||||
#print " field: %s, initialval: %s" % (field_name, initial_val)
|
||||
#setattr(instance.__class__, field_name,
|
||||
#TranslationFieldDescriptor(field_name, initial_val))
|
||||
|
||||
|
||||
#def translated_model_initializing(sender, args, kwargs, **signal_kwargs):
|
||||
#print "translated_model_initializing", sender, args, kwargs
|
||||
#trans_opts = translator.get_options_for_model(sender)
|
||||
#for field_name in trans_opts.local_fields:
|
||||
#setattr(sender, field_name, TranslationFieldDescriptor(field_name))
|
||||
|
||||
|
||||
def delete_cache_fields(model):
|
||||
opts = model._meta
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue