2018-03-21 06:50:40 -04:00
|
|
|
from django.apps import apps
|
|
|
|
from django.shortcuts import get_object_or_404, redirect
|
|
|
|
|
2022-03-11 23:04:05 -05:00
|
|
|
from .convert import AbcIdConverter
|
2018-03-21 06:50:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
def unshort(request, model, tiny):
|
2022-03-11 23:04:05 -05:00
|
|
|
entity = get_object_or_404(apps.get_model(model), pk=tiny)
|
2018-03-21 06:50:40 -04:00
|
|
|
return redirect(entity, permanent=True)
|