fix admin base models
This commit is contained in:
SDE
2023-09-23 17:50:41 +03:00
parent 57f5392203
commit ed38aeed45
3 changed files with 83 additions and 17 deletions

View File

@@ -10,6 +10,12 @@ import re
numbers = '0123456789.,'
def get_fieldsNames_of_model(model):
fields_names = [item.name for item in model._meta.get_fields()]
return fields_names
def get_unique_url(model, name, url=None):
from .functions import url_translit