9 lines
267 B
Python
9 lines
267 B
Python
from django.apps import apps
|
|
from django.shortcuts import get_object_or_404, redirect
|
|
|
|
from .convert import AbcIdConverter
|
|
|
|
|
|
def unshort(request, model, tiny):
|
|
entity = get_object_or_404(apps.get_model(model), pk=tiny)
|
|
return redirect(entity, permanent=True)
|