I create anonymous user from the API (django-piston) but I like to migrate them when they like to register, so I create this url:
url(r'^migrate/(?P<uuid>\w+)/$',
migrate,
{'backend': 'registration.backends.default.DefaultBackend', 'form_class': MigrationForm }),
def migrate(request, uuid, *a, **kwa):
return register(request, *a, **kwa)
But I don't know what can I do to know the UUID when I save the form:
class MigrationForm(RegistrationFormTermsOfService):
def __init__(self, *args, **kwargs):
pass
Any idea?
Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt and/or .pptx
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment