You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I’m using a model in 2 apps with different urls.
Subclasing it and overwriting get_absolute_url() did not work,
because it mangled dbtable.
UpdateView does not work with ModelForm w/o get_absolute_url().
Does there any workaround exist?
Thanks, Axel
---
PGP-Key: CDE74120 ☀ computing @ chaos claudius
Daniel Roseman
unread,
Jul 6, 2019, 12:28:50 PM7/6/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
On Thursday, 4 July 2019 18:45:47 UTC+1, Axe...@Chaos1.DE wrote:
I’m using a model in 2 apps with different urls.
Subclasing it and overwriting get_absolute_url() did not work,
because it mangled dbtable.
UpdateView does not work with ModelForm w/o get_absolute_url().
Does there any workaround exist?
Thanks, Axel
UpdateView works perfectly fine without `get_absolute_url()`. It does however need a `success_url` attribute, or a `get_success_url()` method, defined on the view itself.
--
DR.
Axel Rau
unread,
Jul 7, 2019, 10:53:20 AM7/7/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message