django-mongonaut
django-mongonaut copied to clipboard
Allow dotted names in urlconf
Hello. It seems like a little bug: if my application app_name includes a dot, e.g. forum.mongo_forum then the default mongonaut's urlconf can not handle the url: it can not reverse for 'document_list' with keyword arguments like 'app_name': 'forum.mongo_forum'. The mongo_forum application is installed right into my project and accessed with an project name prefix.
To fix that you can add dot-symbol to mongonaut's urlconf: (?P<app_label>[.-\w]+) for all of your url patterns (document{list, detail, detail_edit_form, detail_add_form}, etc).
Thanks.
The proposed solution has worked for me. Could you please make it official?
@asyncee @ericson-cepeda We accept pull requests. :wink: