Convert current user details, current user locale profile details, home, license, maintenance and tool list views to CBV

This commit is contained in:
Roberto Rosario
2015-04-07 01:43:49 -04:00
parent 719c862c51
commit d1c56c40fd
3 changed files with 275 additions and 279 deletions

View File

@@ -252,3 +252,9 @@ def fs_cleanup(filename, suppress_exceptions=True):
pass
else:
raise
def get_obj_from_content_type_string(string):
model, pk = string.split(',')
ct = ContentType.objects.get(model=model)
return ct.get_object_for_this_type(pk=pk)