title: Django Class Based Generic Views URL Variable Passing
body: <p>Question is quite simple. </p>
  
  <p>Let's say I have an URL config with line:</p>
  
  <pre><code>url(r'^models/(?P&lt;model_group_id&gt;[0-9]+)/(?P&lt;page&gt;\d+)/$', 'Group'),
  </code></pre>
  
  <p>And I want to access <code>model_group_id</code> variable inside </p>
  
  <pre><code>class Group(ListView)
  </code></pre>
  
  <p>View.</p>
  
  <p>On simple views I would just change <code>Group</code> description to:</p>
  
  <pre><code>class Group(ListView, model_group_id):
  </code></pre>
  
  <p>And it would work. Now it says that <code>model_group_id</code> is not defined. So how to pass variables from url regex to class-based view?</p>